package org.example.Mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface studentmapper {

    //相当于映射文件


    @Update("update students set age = age - #{age} where id = #{id}")
    void inage(@Param("zc") int id, @Param("age") int age);
    @Update("update students set age = age + #{age} where id = #{id}")
    void outage(@Param("zr") int id , @Param("age") int age);
}
